package com.freeter.common.enums;

/**
 * '退款状态：3 退出完成，2退款中，4 已驳回',
 */
public enum BackStatusEnum {
    FINISH_STATUS("退出完成",3), BACKING_STATUS("退款中",2),REJECT_STATUS("已驳回",4);

    private final String name;
    private final int code;

    BackStatusEnum(String name, int code) {
        this.name = name;
        this.code = code;
    }
    public static String getName(int code){
        for( BackStatusEnum st : BackStatusEnum.values()){
            if(st.code == code){return st.name;}
        }
        return "";
    }
}
